package org.example.mallchat.common.thread;

import lombok.extern.slf4j.Slf4j;

/**
 * @author: zzh
 * @date: 2024/12/20 14:17:06
 * @version: 1.0
 */
@Slf4j
public class MyUncaughtExceptionHandler implements Thread.UncaughtExceptionHandler {
    @Override
    public void uncaughtException(Thread t, Throwable e) {
      log.error("Uncaught exception in thread " + t.getName(), e);
    }
}
